<template>
  <div class="page">
    <el-table
    :data="tableData"
    :span-method="objectSpanMethod"
    border
  >
  <el-table-column prop="proName" label="项目" align="center">
  </el-table-column>
  <el-table-column prop="content" label="考评内容" align="center"></el-table-column>
  <el-table-column prop="standard" label="考评标准" align="center"></el-table-column>
  <el-table-column prop="rule" label="赋分方法" align="center"></el-table-column>
  <el-table-column prop="method" label="佐证材料和复核方法" align="center"></el-table-column>
  <el-table-column   label="分值" align="center">
     <template slot-scope="scope">
    <el-input  v-model="scope.row.rateScore"></el-input>
      </template>
  </el-table-column>
    <el-table-column  label="市对县打分" align="center">
      <template slot-scope="scope">
    <el-input  v-model="scope.row.cityScore"></el-input>
      </template>
  </el-table-column>
    <el-table-column  label="复核得分" align="center">
      <template slot-scope="scope">
      <el-input  v-model="scope.row.checkScore"></el-input>
      </template>
  </el-table-column>
  <el-table-column  label="评分说明" align="center">
    <template slot-scope="scope">
      <el-input  v-model="scope.row.remark" type="textarea" :rows="3"></el-input>
    </template>
  </el-table-column>
  <el-table-column  label="支撑材料" align="center">
    <template slot-scope="scope">
      <el-input type="textarea" :rows="3"  v-model="scope.row.reason" ></el-input>
    </template>
  </el-table-column>

</el-table>
<el-row type="flex"  justify="center">
  
  <el-button type="success">保存</el-button>
   <el-button type="primary">提交</el-button>
</el-row>
  </div>
</template>

<script>
import t2020 from './2020.js'
export default {
  data() {
    return {
      tableData: []
    };
  },
  mounted(){
    console.log(t2020)
    this.tableData=t2020
  },
  methods: {
    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
      switch(columnIndex){
        case 0:
          switch(rowIndex){
            case 1:
            case 2:
            case 3:
            case 5:
            case 6:
            case 7:
            case 8:
           
            case 10:
            case 11:
            case 12:
            case 13:
            case 14:
            case 15:
            case 16:
            case 17:
            case 18:
            case 19:
              
            case 20: 
            case 21:
            case 23:
            case 24:
            case 25:
            case 26:
            case 28:
            case 29:
            case 31:
            case 32:
            case 33:
            case 35:
              return [0,0]
              break;
            case 0:
            case 30:
              return [4,1]
              break;
            case 4:
              return [5,1]
              break;
            case 9:
              return [13,1]
              break;
            case 22:
              return [5,1]
              break;
            case 27:
              return [3,1]
              break;
            case 34:
            
              return [2,1]
              break;         
          }
          break;
        case 1:
          switch(rowIndex){
            case 1:
            case 2:
            case 3: 
            case 5:
            case 7:
            case 8:
            case 10:
            case 11:
            case 13:
            case 14:
            case 15:
            case 17:
            case 19:
            case 21:
            case 23:
            case 24:
            case 26:
            case 28:
            case 29:
              return [0,0]
              break;
            case 0:
            case 12:
              return [4,1]
              break;
            case 4:
            case 16:
            case 18:
            case 20:

            case 25:
              return [2,1]
              break;
            case 6:
            case 9:
            case 22:
            case 27:
              return [3,1]
              break;
            case 31:
            case 32:
            case 33:
            case 34:
            case 35:
            case 30:
              return [1,2]
              break;
          }
          break;
        case 2:

            switch(rowIndex){
            
            case 31:
            case 32:
            case 33:
            case 34:
            case 35:
            case 30:
              return [0,0]
              break;
          }
          break;
      }
    }
  }
};
</script>
<style  scoped>

</style>
